package org.yylnb.openplatform.payment;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.yylnb.openplatform.payment.mq.SendPaymentResultMQBean;

/**
 * @author RainLin
 * @date 2020/7/28 - 20:52
 */
@SpringBootApplication
@EnableBinding({SendPaymentResultMQBean.class})

public class Payment34000 extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(Payment34000.class, args);
    }

    /**
     * war的方式
     *
     * @param builder
     * @return
     */
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(Payment34000.class);
    }

}
